package com.study.spmongodb.wwj.thread.char06;

/**
 * @author MI
 * @version 1.0
 * @date 2020/12/6 10:59
 */
public class ThreadCloseForce {


    public static void main(String[] args) {
        final ThreadService service = new ThreadService();

        final long start = System.currentTimeMillis();
        service.execute(() -> {
            while (true) {

            }
        });
        service.shutdown(10000);
        final long end = System.currentTimeMillis();

        System.out.println(end - start);
    }
}
